<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>城市列表</title>
</head>
<body>
    <h1>城市列表</h1>
    <table border="1">
        <tr>
            <td>编号</td>
            <td>名称</td>
            <td>拼音</td>
            <td>酒店数量</td>
            <td>操作</td>
        </tr>

        <!-- thymealf循环 -->
        <tr th:each="c : ${cities}">
            <td th:text="${c.id}">编号</td>
            <td th:text="${c.cityName}">名称</td>
            <td th:text="${c.cityPinyin}">拼音</td>
            <td th:text="${c.hotalNumber}">酒店数量</td>
            <td>修改   删除</td>
        </tr>

    </table>
</body>
</html>